define(function (require, exports, module) {
	var $ = require('../../libs/jquery.min.js');

	var health = function () {
		this.html = $('<div class="healths"><div class="health TA" style="width:100%"></div><div class="hurt TA" style="width:0%"></div></div>');
		this.health = this.html.find('.health');
		this.hurt = this.html.find('.hurt');
	};
	health.prototype.render = function () {
		return this.html;
	};
	health.prototype.hit = function (num) {
		this.hurt.css('width', 20 * num + '%');
	};
	health.prototype.minus = function (num) {
		this.health.css('width', 20 * (5 - num) + '%');
		this.hurt.css('width', '0%');
	};

    return function () {
        return new health();
    };

});